package org.dromara.tearoom.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.tearoom.domain.TerUserSubscription;

/**
 * 用户消息订阅业务对象 ter_user_subscription
 *
 * @author ckj
 * @date 2025-04-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TerUserSubscription.class, reverseConvertGenerate = false)
public class TerUserSubscriptionBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 订单ID
     */
    @NotBlank(message = "订单ID不能为空", groups = { AddGroup.class })
    private String orderId;

    /**
     * 用户openId
     */
    @NotBlank(message = "用户openId不能为空", groups = { AddGroup.class })
    private String openId;

    /**
     * 模版ID
     */
    @NotBlank(message = "模版ID不能为空", groups = { AddGroup.class })
    private String templateId;

    /**
     * 是否订阅
     */
    @NotNull(message = "订阅不能为空", groups = { AddGroup.class })
    private Integer subscribed;


}
